package cn.edu.zjut.mina.bean;

import java.util.List;
/**
 * 仿照Page写的数据结构，可用于自定义内容
 * @author 张宇翔
 *
 * @param <T>
 */
public class MyPage <T> {
	private List<T> content;//内容
	private boolean first;//是否是首页
	private boolean last;//是否是最后一页
	private int number;
	private int numberOfElements;
	private int size;
	private long totalElements;
	private int totalPages;
//	private Sort sort;
	
	public List<T> getContent() {
		return content;
	}
	public void setContent(List<T> content) {
		this.content = content;
	}
	public boolean isFirst() {
		return first;
	}
	public void setFirst(boolean first) {
		this.first = first;
	}
	public boolean isLast() {
		return last;
	}
	public void setLast(boolean last) {
		this.last = last;
	}
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public int getNumberOfElements() {
		return numberOfElements;
	}
	public void setNumberOfElements(int numberOfElements) {
		this.numberOfElements = numberOfElements;
	}
	public int getSize() {
		return size;
	}
	public void setSize(int size) {
		this.size = size;
	}
	public long getTotalElements() {
		return totalElements;
	}
	public void setTotalElements(long totalElements) {
		this.totalElements = totalElements;
	}
	public int getTotalPages() {
		return totalPages;
	}
	public void setTotalPages(int totalPages) {
		this.totalPages = totalPages;
	}
}
